<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>    
    <iframe src="http://localhost:8081" style="display: none;" frameborder="0"></iframe>
    <script>
            window.addEventListener('message', function(){
                document.querySelector('iframe').contentWindow.postMessage('接收到8080发送的数据','http://localhost:8081')                
            })
    </script>
</body>

</html>
